package com.wxq.demo.db2.service;

import com.wxq.demo.db2.dao.Db2Dao;
import com.wxq.demo.pojo.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Db2Service {
    @Autowired
    private Db2Dao db2Dao;

    public List<Book> getAllBooks() {
        return db2Dao.findAll();
    }
}
